package swa.telco.impl;

import java.util.Collection;
import java.util.Dictionary;
import java.util.HashMap;
import java.util.Map;

import com.sun.org.apache.bcel.internal.generic.NEW;

import swa2012.telco.broker.beans.Client;

public class OnlineClients {
	
	
	private HashMap<String, Client> onlineClients = new HashMap<String, Client>();
	
	public void add(Client client){
		onlineClients.put(client.getID(), client);
	}
	
	public void remove(String clientID){
		onlineClients.remove(clientID);
	}
	
	public Collection<Client> getClients(){
		return (Collection<Client>) this.onlineClients.values();
	}

}
